package com.song.service.Impl;

import com.song.dao.FloorMapper;
import com.song.pojo.Floor;
import com.song.service.FloorService;
import com.song.vo.FloorVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 宋超
 * HP - the login name of the current user.
 * 2020/12/21 - the current system date.
 * 16:34 - the current system time.
 */
@Service
@Transactional
public class FloorServiceImpl implements FloorService {

    @Resource
    private FloorMapper floorMapper;

    //查询楼层列表
    public List<Floor> findFloorList(FloorVo floorVo) {
        return floorMapper.findFloorList(floorVo);
    }

    //添加楼层
    public int addFloor(Floor floor) {
        return floorMapper.addFloor(floor);
    }


    //修改楼层
    public int updateFloor(Floor floor) {
        return floorMapper.updateFloor(floor);
    }
}
